// router.ts
import { createWebHistory, createRouter, RouteRecordRaw } from "vue-router";
import Binary from "@/views/Binary.vue";
import Test from "@/views/Test.vue";
import Lession from "@/views/Lession.vue";
import DateConvert from "@/views/DateConvert.vue";
import HtmlEncode from "@/views/HtmlEncode.vue";
import Unicode from "@/views/Unicode.vue";

const routes: Array<RouteRecordRaw> = [
  { path: "/", name: "binary", component: Binary },
  { path: "/binary", name: "Binary", component: Binary },
  { path: "/date-convert", name: "DateConvert", component: DateConvert },
  { path: "/unicode", name: "Unicode", component: Unicode },
  { path: "/html-encode", name: "HtmlEncode", component: HtmlEncode },
  { path: "/test", name: "Test", component: Test },
  { path: "/lession", name: "Lession", component: Lession },
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;
